package org.yn.emp.mapper;


import org.yn.base.mapper.IBaseMapper;
import org.yn.base.query.BaseQuery;
import org.yn.base.until.PageInfo;
import org.yn.dept.domain.Department;
import org.yn.emp.EmployeeDTO;
import org.yn.emp.domain.Employee;
import org.yn.query.EmployeeQuery;

import java.io.Serializable;
import java.util.List;


public interface EmployeeMapper extends IBaseMapper<Employee> {

//    List<Employee> selectAll();
//
//    Employee selectById(Long id);
//
//    void insert(Employee employee);
//
//    void update(Employee employee);
//
//    void delete(Long id);
//
//    // 分页查询
//    List<Employee> queryPage(BaseQuery employeeQuery);
//
//    Integer countTotal(EmployeeQuery employeeQuery);




    void deleteByEmployeeId(Long employeeId);

    void insertByEmployeeId(EmployeeDTO employeeDTO);

    Employee selectByName(String username);

    List<Long> selectByEmployeeId(Long id);

    List<String> queryPermissionByUserId(Long id);
}
